package com.pangolin.pangolinim.app;

/*
    @ TODO:BroadcastMsg
    @ 该类是UI和底层service通讯的广播消息类型定义
    @ 该消息封装在Bundle中，通过Intent传送
 */

public class BroadcastMsg {
    /* 广播接收器action类型 */
    public static final String CORE_ACTION = "com.pangolin.pangolinim.CORE_RECEIVER";
    public static final String ACTIVITY_ACTION = "com.pangolin.pangolinim.ACTIVITY_RECEIVER";


    /* UI发送给Service的Bundle封包的消息类型 */
    public static final int SIG_UI_STOP         = 101;      //结束服务清理现场
    public static final int SIG_UI_DATA         = 110;      //通讯请求（包含内容详见和服务器通讯协议）

    /* Service发送给UI的Bundle封包的消息类型 */
    public static final int SIG_CORE_SERVSTARED = 200;      //服务启动完毕消息
    public static final int SIG_CORE_SERVSTOPED = 201;      //服务结束结束消息
    public static final int SIG_CORE_CONNECT    = 202;      //与服务器建立连接
    public static final int SIG_CORE_DISCONNECT = 203;      //与服务器断开链接
    public static final int SIG_CORE_THREADEND  = 204;      //与服务器断开链接
    public static final int SIG_CORE_NETERR     = 205;      //网络错误
    public static final int SIG_CORE_SYSERR     = 206;      //系统错误
    public static final int SIG_CORE_DATA       = 207;      //通讯请求响应




    /* UI发送给Service的二级封包数据类型（SIG_CORE_DATA封包中的data字段）*/
    public static final int DATA_UI_REG         = 301;      //注册请求
    public static final int DATA_UI_LOGIN       = 302;      //登陆请求
    public static final int DATA_UI_LOGOUT      = 303;      //退出请求
    public static final int DATA_UI_FINDUSER    = 304;      //搜索用户请求
    public static final int DATA_UI_REPASS      = 305;      //修改密码请求
    public static final int DATA_UI_REINFO      = 306;      //修改个人信息请求
    public static final int DATA_UI_SENDMSG     = 307;      //发送消息请求
    public static final int DATA_UI_OPERATE     = 308;      //添加好友请求
    public static final int DATA_UI_CONFIRM     = 309;      //确认好友请求
    public static final int DATA_UI_DELETE      = 310;      //删除好友请求
    public static final int DATA_UI_CONTACTS    = 311;      //获取好友列表请求
    public static final int DATA_UI_OFFMSG      = 312;      //获取离线消息请求
    public static final int DATA_UI_SESSIONS    = 313;      //获取最近会话列表
    public static final int DATA_UI_MYINFO      = 314;      //获取个人信息
    public static final int DATA_UI_DOWNPIC     = 315;      //下载网络图片
    public static final int DATA_UI_UPLOADPIC   = 316;      //下上传图片到网络
    public static final int DATA_UI_NEWFRIEND   = 317;      //新的朋友申请列表请求
    public static final int DATA_UI_GETMSG      = 318;      //拉取聊天记录请求
    public static final int DATA_UI_SETSESSION  = 319;      //设置会话信息请求
    public static final int DATA_UI_DELLOG      = 320;      //删除聊天记录请求
    public static final int DATA_UI_SETCONFIG   = 321;      //修改系统全局设定
    public static final int DATA_UI_GETCONFIG   = 322;      //获取系统全局设定

    /* Service发送给UI的二级封包数据类型（SIG_CORE_DATA封包中的data字段）*/
    public static final int DATA_CORE_REG       = 401;      //注册响应
    public static final int DATA_CORE_LOGIN     = 402;      //登陆响应
    public static final int DATA_CORE_LOGOUT    = 403;      //退出响应
    public static final int DATA_CORE_FINDUSER  = 404;      //搜索用户响应
    public static final int DATA_CORE_REPASS    = 405;      //修改密码响应
    public static final int DATA_CORE_REINFO    = 406;      //修改个人信息响应
    public static final int DATA_CORE_SENDMSG   = 407;      //发送消息响应
    public static final int DATA_CORE_OPERATE   = 408;      //添加好友响应
    public static final int DATA_CORE_CONFIRM   = 409;      //确认好友响应
    public static final int DATA_CORE_DELETE    = 410;      //删除好友响应
    public static final int DATA_CORE_CONTACTS  = 411;      //好友列表响应
    public static final int DATA_CORE_OFFMSG    = 412;      //离线消息响应
    public static final int DATA_CORE_SESSIONS  = 413;      //最近会话响应
    public static final int DATA_CORE_MYINFO    = 414;      //个人信息响应
    public static final int DATA_CORE_DOWNPIC   = 415;      //下载网络图片响应
    public static final int DATA_CORE_UPLOADPIC = 416;      //上传图片到网络响应
    public static final int DATA_CORE_NEWFRIEND = 417;      //新的朋友申请列表响应
    public static final int DATA_CORE_GETMSG    = 418;      //拉取聊天记录响应
    public static final int DATA_CORE_SETSESSION= 419;      //设置会话信息响应
    public static final int DATA_CORE_DELLOG    = 420;      //删除聊天记录响应
    public static final int DATA_CORE_SETCONFIG = 421;      //修改系统全局设定响应
    public static final int DATA_CORE_GETCONFIG = 422;      //获取系统全局设定响应

    //Service发送给UI的二级封包数据类型（客户端之间的消息类型，该消息没有请求和响应对应关系）
    public static final int DATA_CORE_CLIOPERATE= 501;      //客户端间添加好友消息
    public static final int DATA_CORE_CLICONFIRM= 502;      //客户端间确认好友通知
    public static final int DATA_CORE_CLIDELETE = 503;      //客户端间删除好友通知
    public static final int DATA_CORE_CLIMSG    = 504;      //客户端间普通消息通知
}
